package cn.jinjimi.app.poster.bean;

import com.google.gson.annotations.SerializedName;

import java.io.Serializable;
import java.util.List;

/**
 * Created by lforxeverc on 2017/5/11.
 */

public class PosterDetailInfo implements Serializable {

    @SerializedName("background_url")
    private String backgroundUrl;

    @SerializedName("watermarks")
    private List<WaterMark> waterMarks;


    public String getBackgroundUrl() {
        return backgroundUrl;
    }

    public void setBackgroundUrl(String backgroundUrl) {
        this.backgroundUrl = backgroundUrl;
    }

    public WaterMark getWaterMark() {
        WaterMark waterMark = null;
        if (waterMarks != null && !waterMarks.isEmpty()) {
            waterMark = waterMarks.get(0);
        }
        return waterMark;
    }

    public static class WaterMark {
        @SerializedName("coordinate_x")
        private int x;
        @SerializedName("coordinate_y")
        private int y;
        @SerializedName("watermark_url")
        private String waterMarkUrl;

        public int getX() {
            return x;
        }

        public int getY() {
            return y;
        }

        public String getWaterMarkUrl() {
            return waterMarkUrl;
        }
    }
}
